<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<?php if($KEYWORDS): echo ($KEYWORDS); endif; ?>" />
<meta name="description" content="<?php if($DESCRIPTION): echo ($DESCRIPTION); endif; ?>" />
<meta name="robots" content="all" />
<meta name="author" content="seophp.taobao.com" />
<meta name="generator" content="SEOPHP v2.0 UTF" />
<meta name="template" content="SEOPHP BLOG v2.0" />
<title><?php echo ($WEBTITLE); ?></title>
<link href="../Public/Css/style.css" rel="stylesheet" media="screen" type="text/css" />
<script type="text/javascript" src="/Public/Js/Base.js"></script><script type="text/javascript" src="/Public/Js/prototype.js"></script><script type="text/javascript" src="/Public/Js/mootools.js"></script><script type="text/javascript" src="/Public/Js/Think/ThinkAjax.js"></script><script type="text/javascript" src="/Public/Js/Form/CheckForm.js"></script><script type="text/javascript" src="/Public/Js/Util/ImageLoader.js"></script><script type="text/javascript" src="/Public/Js/jquery.js"></script><script type="text/javascript" src="/Public/Js/Focus/myfocus.js"></script> 
<script type="text/javascript" src="../Public/Js/common.js"></script>
<script type="text/javascript" src="../Public/Js/jquery.artZoom.js"></script>
<script type="text/javascript" src="../Public/Js/shCore.js"></script>
<script type="text/javascript" src="../Public/Js/shLegacy.js"></script>
<script type="text/javascript" src="../Public/Js/shBrushAll.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
var $J=jQuery.noConflict();
//指定当前组模块URL地址 
var URL = '__URL__';
var APP = '__APP__';
var PUBLIC = '__PUBLIC__';
ImageLoader.startLoad();
jQuery(document).ready(function(){
    jQuery(document).bind("contextmenu",function(e){
        //return false;
    });
});

	//there is loding syntax hight light swf
	SyntaxHighlighter.config.clipboardSwf = '../Public/Images/clipboard.swf';
	SyntaxHighlighter.all();
	dp.SyntaxHighlighter.HighlightAll('code');
	
//-->
</SCRIPT>
</head>

<body>
<a name="headertop" id="gettop"></a>
<div id="header">
	<div id="navMenu">
		<ul>
				<?php echo (getnavhtml($topnavlist,'menu_blogtop', 0, '', '', 1)); ?>
				<?php if(is_array($topnavlist)): $i = 0; $__LIST__ = $topnavlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
						<a <?php if($vo[_active]): ?>class="active"<?php endif; ?> href="<?php if($vo[link]): echo ($vo["link"]); else: echo (geturl($vo,$vo[name].'/index')); endif; ?>" ><span><?php echo ($vo["title"]); ?></span></a>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
  <div id="subMenu">
  	<h1><?php echo (C("blog_name")); ?></h1>
		<h4><?php echo (C("blog_name_description")); ?></h4>
		<ul>
        <li><a href="<?php echo (geturl($rss,'Home/Blog/rss',1,'xml')); ?>" onfocus="this.blur();"><img src="../Public/Images/icon_rss.jpg" onmouseover="javascript:this.src='../Public/Images/icon_rss_hover.jpg'"  onmouseout="javascript:this.src='../Public/Images/icon_rss.jpg'" alt="订阅我的博文!" title="订阅我的博文!" /></a></li>
        <?php if(C("blog_weibo")!= ''): ?><li><a href="<?php echo (C("blog_weibo")); ?>" onfocus="this.blur();" target="_blank"><img src="../Public/Images/icon_weibo.jpg" onmouseover="javascript:this.src='../Public/Images/icon_weibo_hover.jpg'"  onmouseout="javascript:this.src='../Public/Images/icon_weibo.jpg'" alt="关注我的微博!" title="关注我的微博!"/></a></li><?php endif; ?>
        <?php if(C("blog_email")!= ''): ?><if><li><a href="mailto:<?php echo (C("blog_email")); ?>" onfocus="this.blur();"><img src="../Public/Images/icon_mail.jpg" onmouseover="javascript:this.src='../Public/Images/icon_mail_hover.jpg'"  onmouseout="javascript:this.src='../Public/Images/icon_mail.jpg'" alt="发邮件给<?php echo (C("blog_name")); ?>吧!" title="发邮件给<?php echo (C("blog_name")); ?>吧!"/></a></li><?php endif; ?>
    </ul>
  </div>
</div><!-- //End header -->
<!-- /header -->

<div id="container">	
	<div id="main">

	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="listBox">
			<div class="listBoxTop">
				<div class="listBoxComment">
					<span class="countComments"><?php echo ($vo["comments"]); ?></span>
				</div>
				<div class="listBoxTitle">
					<h2><a href="<?php echo (geturl($vo,'Home/Blog/read?id='.$vo['id'])); ?>" title="<?php echo ($vo["title"]); ?>"><?php echo ($vo["title"]); ?></a></h2>
					<span class="timeAuthor">
						发布于：<small><?php echo (date('Y-m-d',$vo["create_time"])); ?></small>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;作者：<small><?php echo ($vo["author"]); ?></small>
					</span>
				</div>
			</div>
			<div class="listBoxCenter">
				<?php echo (getpicture($imglist,$vo[content])); ?>
				<?php if($imglist): if(is_array($imglist)): $i = 0; $__LIST__ = $imglist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$img): $mod = ($i % 2 );++$i;?><p class="ImgPreview"><a href='<?php echo ($img); ?>' rel="<?php echo ($img); ?>"><img src='<?php echo ($img); ?>' class="artZoom" /></a></p><?php endforeach; endif; else: echo "" ;endif; endif; ?>
				<p class="articleIntro"><?php echo (blog_summary($vo["content"],500)); ?></p>
				<p class="readMore"><a href="<?php echo (geturl($vo,'Home/Blog/read?id='.$vo['id'])); ?>">+阅读全文</a></p>
			</div>
			<div class="listBoxBottom">
					 <small class="listBoxBottomTag">标签：<?php if($vo[tags]): echo ($vo["tags"]); else: ?>无<?php endif; ?></small>
					 <small class="listBoxBottomClick">日志分类：<?php echo (getcategorypath($vo["catid"],true, '', 'Blog')); ?> 已被围观：<?php echo ($vo["views"]); ?>人次</small>
			</div>
		</div><?php endforeach; endif; else: echo "" ;endif; ?>
		
	</div>

	<!-- //加载右侧区域 -->
	<div class="sidebar">
	
		  <div class="sidebarBox linelimit sidebarBoxTop">
  	<div class="boxTop">
  		<h2>日志分类</h2>
  	</div>
  	<div class="boxClassify">
  		<ul>
	  		<?php if(is_array($category)): $i = 0; $__LIST__ = $category;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cat): $mod = ($i % 2 );++$i;?><li><a href='<?php echo (geturl($cat,'Home/Blog/index?catid='.$cat['id'])); ?>'><?php echo ($cat['title']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
  	</div>
  </div>

		<?php echo (getlistbymodule($hotbloglist,'Blog',10,'views DESC', 'status=1'.($data['catid']?' AND catid='.$data['catid']:''))); ?>
<?php if($hotbloglist): ?><div class="sidebarBox linelimit [classname]">
  	<div class="boxTop">
  		<h2>热门日志</h2>
  	</div>
  	<div class="boxContent">
  		<ul>
  		<?php if(is_array($hotbloglist)): $i = 0; $__LIST__ = $hotbloglist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$blog): $mod = ($i % 2 );++$i;?><li><a href="<?php echo (geturl($blog,'Home/Blog/read?id='.$blog['id'], 1)); ?>" title="<?php echo ($blog["title"]); ?>"><?php echo ($blog["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
  	</div>
  </div><?php endif; ?>
			
		<?php echo (getlistbymodule($sidecommentlist,'Comment',10,'create_time DESC', "status=1 AND module='New'")); ?>
<?php if($sidecommentlist): foreach($sidecommentlist as $val){ $cids[] = $val['modid']; } $modsql = "id IN('".implode("','", $cids)."')"; getListByModule($ctbloglist, 'New', 10, 'id DESC', $modsql); foreach($ctbloglist as $val){ $val['url'] = getUrl($val,'Home/Blog/read?id='.$val['id'],1); $commentbloglist[$val['id']] = $val; } ?>	
  <div class="sidebarBox [classname]">
  	<div class="boxTop">
  		<h2>网友评论</h2>
  	</div>
  	<div class="boxContent">
  		<ul class="comments">
  			<?php if(is_array($sidecommentlist)): $i = 0; $__LIST__ = $sidecommentlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$comment): $mod = ($i % 2 );++$i;?><li> <small><a href="javascript:void();" rel="nofollow" class="username"><?php echo ($comment["nickname"]); ?></a>&#160;评论&#160;<a href="<?php echo ($commentbloglist[$comment['modid']]['url']); ?>" title="<?php echo ($commentbloglist[$comment['modid']]['title']); ?>"><?php echo ($commentbloglist[$comment['modid']]['title']); ?></a></small>
	        <p><?php echo ($comment["contents"]); ?></p>
	        </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </li>
      </ul>
  	</div>
  </div><?php endif; ?>
			
		<?php echo (getlistbymodule($sidelinklist,'Link',100,'sort DESC', "status=1 AND isindex=2")); ?>
<?php if($sidelinklist): ?><div class="sidebarBox [classname]">
  	<div class="boxTop">
  		<h2>友情链接</h2>
  	</div>
  	<div class="boxContent">
  		<ul class="linksTxt">
  			<?php if(is_array($sidelinklist)): $i = 0; $__LIST__ = $sidelinklist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$link): $mod = ($i % 2 );++$i;?><li><a href='<?php echo ($link[url]); ?>' target='_blank'><?php echo ($link["title"]); ?></a> </li><?php endforeach; endif; else: echo "" ;endif; ?>
		  </ul>
  	</div>
  </div><?php endif; ?>

	</div>

</div>

<SCRIPT LANGUAGE="JavaScript">
jQuery(function ($) {
	$('.artZoom').artZoom({
		path: '../Public/Images',
		preload: true,
		blur: true,
		// 语言设置
		left: '左旋转',
		right: '右旋转',
		source: '看原图',
		maxWidth: 650
	});
	
});
</SCRIPT>


<div class="clearfix"></div>
<div id="subFoot">	
	<div id="Copyright">
		<div class="themeBy">
		  <h1>&copy 2011-2012 <?php echo ($_SERVER['SERVER_NAME']); ?> &nbsp; - &nbsp; <a href="<?php echo (geturl($url,'Home/Blog/Index', 1)); ?>" target="_blank" title="<?php echo (C("blog_name_description")); ?>"><strong><?php echo (C("blog_name")); ?></strong></a><?php if($FOOTSEOKEY): if(is_array($FOOTSEOKEY)): $i = 0; $__LIST__ = $FOOTSEOKEY;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sk): $mod = ($i % 2 );++$i;?>&nbsp; - &nbsp; <a href="<?php if($sk[link]): echo ($sk["link"]); else: ?>http://<?php echo ($_SERVER['SERVER_NAME']); ?>/<?php endif; ?>" ><strong><?php echo ($sk["name"]); ?></strong></a><?php endforeach; endif; else: echo "" ;endif; endif; ?>
		  </h1>
	  </div>
	</div>
</div>

<?php if($Think.config.share_code): echo (C("share_code")); endif; ?>

<!-- /footer -->
</body>
</html>